package com.game.my.model;

import java.util.List;

import com.eova.common.base.BaseModel;

public class GameNum extends BaseModel<GameNum> {
	/**
	 * TODO（用一句话描述这个变量表示什么）
	 */

	private static final long serialVersionUID = 1L;

	public static final GameNum dao = new GameNum();

	public List<GameNum> gameNum(Object openId) {
		String sql = "SELECT id FROM game_detail_info where userId=?";
		return this.find(sql, openId);
	}

	public List<GameNum> gameWin(int openId) {
		String sql = "SELECT id FROM game_detail_info where userId=? and isWinning = 0";
		return this.find(sql, 1);
	}
}
